<%-- 
    Document   : connexion
    Created on : 12 juin 2013, 15:42:19
    Author     : ali
--%>

<%@page import="EDT.api.API"%>
<%@page import="EDT.obj.Session"%>
<%  

    session.removeAttribute("key");
    session.removeAttribute("idinterv");
    session.removeAttribute("nominterv");
    session.removeAttribute("prenominterv");
    session.removeAttribute("type");

%>

<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head> 
        <title>Connexion Administrateur</title>
        
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
	<link rel="stylesheet" href="connexion.css" />
        <link rel="SHORTCUT ICON" href="../images/header4.gif" />
        <script type="text/javascript" src="connexion.js"></script>
        <script type="text/javascript" src="jquery_1_7.js"></script>
        <script type="text/javascript" src="jquery.min.js"></script>
        
        <script language="javascript" src="md5.js"></script>
        <script language="javascript">

    function doChallengeResponse() {
        
    
    str = document.getElementById("passTmp").value;
    document.getElementById("pass").value = MD5(str);
    
    document.getElementById("passTmp").value="";
      }

    </script>
    </head>
<body>
        
		
    <section>
        
            <div class="logo"></div>
		
        
	    
	    
            <form method="POST" action="ConnectAct.do" >
		
		
		<fieldset>
		<legend>Connexion Administrateur / Enseignant :</legend>
		
                
		<div id="erreur" style='color:red; height:10px; margin-top:5px;'>
                    
                <%
                String error = (String) request.getAttribute("msg");
                    if( error != null )
                    out.println(error);
                    
                
                %>
                    
                </div>
		
		<table id="formulaire">
		
		<tr>
			<td>Email </td>
			<td><input type="text" name="email" size="20px" /></td>
		</tr>
		
		<tr>
			<td>Password</td>
			<td><input type="password" id ="passTmp" name="passTmp" size="20px"/>
                            <input type="hidden" id ="pass" name="pass"/></td>
		</tr>
		
		<tr>
			<td><input type="submit" onClick="doChallengeResponse()" value="Connexion" size="20px" /></td>
			
		</tr>
		
		 
		
		</table>
            
                <html:errors/>
                <br/><br/><br/>
	    
                </fieldset>
		
		</form>
            
            
            
            
            
       
        </section>
		
        
    </body>
</html>


